package com.repu.dyz.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.time.Duration;

/**
 * @ClassName: TokenSettings
 * TODO:类文件简单描述
 * @Author: 小霍
 * @UpdateUser: 小霍
 * @Version: 0.0.1
 */
@Component
@ConfigurationProperties(prefix = "jwt")
@Data
public class TokenSettings {
    private String secretKey; //密钥
    private Duration accessTokenExpireTime;//token 过期时间
    private Duration refreshTokenExpireTime; //刷新token过期时间
    private Duration refreshTokenExpireAppTime;//app刷新token 过期时间
    private String  issuer; //jwt使用者

}
